package com.dao.impl;

import java.util.List;

import com.base.BaseDao;
import com.dao.CommentDao;
import com.entity.Comment;
import com.exception.DaoException;

public class CommentDaoImpl extends BaseDao<Comment> implements CommentDao {

	@Override
	public List<Comment> selectCommentByNid(Integer nid) throws DaoException {
		return executeQuery("select * from comments where cnid = ?", nid);
	}

}
